package com.easy.mapper;

import com.easy.bean.Harvest;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HarvestMapper {
    int add(@Param("harvest") Harvest harvest);
    int edit(@Param("harvest") Harvest harvest);
    int del(@Param("id") Integer id);
    Harvest one(@Param("id") Integer id);
    List<Harvest> all(@Param("harvest") Harvest harvest);
    int pageCount(@Param("harvest") Harvest harvest);
    List<Harvest> page(@Param("page") Page page, @Param("harvest") Harvest harvest);
}
